import React from 'react'
import { Tabbar } from 'react-vant'
import { childroutes } from '../router'
import { FriendsO, HomeO, Search, SettingO } from '@react-vant/icons'
function Mytabber() {
  return (
    <div>
     <Tabbar>
        {
            childroutes.length>0 && childroutes.map((item,index)=>{
                return  <Tabbar.Item icon={<HomeO />}>{item.title}</Tabbar.Item>
            })
        }
       
      </Tabbar>
    </div>
  )
}

export default Mytabber
